import Vue from 'vue';
import Route from "vue-router";
Vue.use(Route)

// 定义路由规则
const routes=[
    {
        path: '/',
        component: () => import('../components/SquadList.vue')
    },
    {
        path: '/add',
        component: () => import('../components/addUser.vue')
    }
]

// 创建路由器对象
const router = new Route({
    mode:'history',
    routes
})

export default router